package study.datastructure.graph.kruskal;/**
 * @program: datastructure
 * @author: lcy
 * @create: 2024-06-06 12:18
 */

/**
 2024/6/6,
 */


public class Edge implements Comparable<Edge>{
    Integer src;
    Integer dest;
    Integer weight;

    public Edge(Integer src, Integer dest, Integer weight){
        this.src = src;
        this.dest = dest;
        this.weight = weight;
    }

    @Override
    public int compareTo(Edge other) {
        return this.weight-other.weight;
    }
}
